package com.mrjy.wechat.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.mrjy.common.entity.WxMsgNews;
import com.mrjy.wechat.page.Pagination;


public interface MsgNewsDao {

	public WxMsgNews getById(String id);

	public List<WxMsgNews> listForPage(WxMsgNews searchEntity);
	
	public List<WxMsgNews> pageWebNewsList(WxMsgNews searchEntity,Pagination<WxMsgNews> page);

	public void add(WxMsgNews entity);

	public void update(WxMsgNews entity);
	
	public void updateUrl(WxMsgNews entity);

	public void delete(WxMsgNews entity);

	public List<WxMsgNews> getRandomMsg(Integer num);

	public List<WxMsgNews> getRandomMsgByContent( String inputcode , Integer num);
	
	public List<WxMsgNews> getMsgNewsByIds(String[] array);

}